import request from '@/utils/request'

// 查询出入库--备用金入库明细列表
export function listInventoryFundJoin(query) {
  return request({
    url: '/system/inventoryFundJoin/list',
    method: 'get',
    params: query
  })
}

//出入库--现金转入
export function shiftToAmount(data) {
  return request({
    url: '/system/DingDing/shift/to/amount',
    method: 'post',
    data: data
  })
}

/**
 * 
 * @param {删除备用金入库明细} data 
 * @returns 
 */
export function delByIds(data) {
  return request({
    url: '/system/inventoryFundJoin/delByIds',
    method: 'post',
    data: Array.isArray(data) ? data : [data]
  })
}

// 查询出入库--备用金入库明细详细
export function getInventoryFundJoin(id) {
  return request({
    url: '/system/inventoryFundJoin/' + id,
    method: 'get'
  })
}

// 新增出入库--备用金入库明细
export function addInventoryFundJoin(data) {
  return request({
    url: '/system/inventoryFundJoin',
    method: 'post',
    data: data
  })
}

// 修改出入库--备用金入库明细
export function updateInventoryFundJoin(data) {
  return request({
    url: '/system/inventoryFundJoin',
    method: 'put',
    data: data
  })
}

// 删除出入库--备用金入库明细
export function delInventoryFundJoin(id) {
  return request({
    url: '/system/inventoryFundJoin/' + id,
    method: 'delete'
  })
}
